import variables from "@/styles/varlables.module.less"
import {getStorage,setStorage} from "@/unitils/storage"
export default{
    namespaced:true,
    state:{  
        variables,
        therecolor: getStorage("theme") || "def",
        themelog: {
            def:"sunny",
            dark:"moon"

        }
    },
    mutations:{
        setthere(state, color){
            state.therecolor = state.therecolor === "def" ? "dark" : "def";
            setStorage("theme", state.therecolor);
        }
    },
    actions:{

    }
}